Page({
    data: {
        showData:"123"
    },
    onLoad() { 

    },

    callHelloWorld(){
        var self = this;
        let show_message = "";
        my.test.callFunction({
            name: "helloworld",
            success: function(res){
                console.log(res);
                self.setData({
                    showData:res.result.message
                })
            }
        })
    },

    addData(){
        my.test.callFunction({
            name:'addImages',
            success:function(res){
                console.log(res);
                console.log("成功添加数据");
            }
        })
    }
});
